﻿using ConsoleApplication5;
using HelloWorld.RobotFights;
using RobotsFight.RobotImplementation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameHost
{
    class Program
    {
        static void Main(string[] args)
        {
            InputHandler handler = new InputHandler();

            GameLogic logic = new GameLogic(handler);

            try
            {
                RandomRobot r1 = new RandomRobot("X",ConsoleColor.Magenta);
                RandomRobot r2 = new RandomRobot("X", ConsoleColor.Magenta);
                RandomRobot r3 = new RandomRobot("X", ConsoleColor.Magenta);
                RandomRobot r4 = new RandomRobot("X", ConsoleColor.Magenta);

                logic.StartGame(20, 30, new Robot[] {r1,r2,r3,r4});
            }
            catch ( Exception e)
            {
                Console.WriteLine("Unexpected game exception:{0}", e.Message);
            }
           

            Console.ReadKey();
        }
    }
}
